********************************************************************************
**************************** DATA REPLICATION GUIDE ****************************
************************************* for **************************************
****************************** A FIELD OF HER OWN ******************************
********************************************************************************

This readme file contains instructions to replicate all tables and figures produced in "A Field of Her Own." All empirical analysis for the paper was conducted in Stata version 18, on Windows 11.

1. Unzip the replication file to a single directory on your harddrive. The folder structure of the unzipped archive is as follows:

- "ado" contains all necessary Stata programs for the analysis. Before beginning, ensure that these files are copied to the corresponding lettered folder in the "ado/plus" directory used by your Stata installation.
- "analysis data" contains the clean dataset used for all empirical analysis in the paper.
- "do files" contains our custom written code to clean data, run regressions, produce tables/figures, etc.
- "original data" contains the raw survey data collected in Myanmar in 2019.
- "power calcs" contains the excel files used to generate Appendix Table A.5 - Power Calculations.
- "tables and figures" contains all other tables and figures presented in the paper.

In addition, the main directory contains a codebook that describes all variables in the clean dataset ("codebook.txt"), a master do-file ("master.do"), a log file showing successful execution of all included code ("code_log.txt"), and this readme file ("readme.txt").

2. Ensure that all files contained in the "ado" folder are copied into your own ado/plus folder connected to your Stata installation. These user written programs are necessary to conduct the proceeding analysis.

3. Double-click "master.do" to open in Stata. It is important to open the do-file in this manner, as it will automatically set the working directory in Stata.

4. Run the "master.do" file. This will run the 3 do-files in the "do files" folder in the correct order.

- "genvars_Jan2022.do" takes in the full raw dataset, does some cleaning, and creates the variables necessary for our analysis. It then drops all unecessary variables and saves the clean dataset into the "analysis data" folder.
- "tables&figures_Mar2023.do" is the primary do file that creates the bulk of all tables and figures used in the paper. It takes in the clean dataset created in the previous do-file, runs all regressions from the paper, then exports all tables and figures to the "tables and figures" folder.
- "powercalcs2.do" does the sample size and power calculations needed to produce Appendix Table A.5 from the paper. It then saves two excel files that summarize these calculations in the "power calcs" folder.

5. All resulting tables and figures will now be updated in the "tables and figures" folder, each with the same name as found in the latex manuscript. These results can thus be easily compared with the results from the paper.

6. The updated excel files in "power calcs" are used to produce Appendix Table A.5. To view these results, open both "rdsampsi2_prop.xlsx" and "rdsampsi2_yn.xlsx" on your computer. (They must both be open at the same time, as "rdsampsi2_prop.xlsx" is populated with data from "rdsampsi2_yn.xlsx".) In "rdsampsi2_prop.xlsx", navigate to the LATEX tab to find the table as it appears in the paper.